package com.gaoyi.websocket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class WmsUser implements Serializable{

        private static final long serialVersionUID=1L;

        /**
         * 主键
         */
        @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

        /**
         * 账号
         */
        private String account;

        /**
         * 用户名
         */
        private String username;

        /**
         * 密码
         */
        private String password;

        /**
         * 角色id
         */
        @TableField("roleId")
        private Integer roleId;

        /**
         * 部门id
         */
        @TableField("depId")
        private Integer depId;

        /**
         * 邮箱
         */
        private String email;

        /**
         * 手机号
         */
        @TableField("phoneNum")
        private String phoneNum;

        /**
         * 盐
         */
        private String salt;

        /**
         * 登录ip
         * */
        @TableField("loginIP")
        private String loginIP;

        @TableField(exist = false)
        private String roleName;

        @TableField(exist = false)
        private String departmentName;

}
